package clientDB;

import org.hibernate.Session;

import search.TagedFiles;

/**
 * managing the interactions with database for the table TagedFiles
 * @author ran
 *
 */
public class TagedFilesManager {
	private Session session = null;
	 public TagedFilesManager(Session session) {
	  if(session == null)
	    throw new RuntimeException("Invalid session object.");
	  this.session = session;
	 }
	 public void save(TagedFiles file){
	  session.save(file);
	 }
	 public void update(TagedFiles file){
	  session.update(file);
	 }
	 public void delete(TagedFiles file) {
	  session.delete(file);
	 }
}
